

import { mapState } from 'vuex'
import moment from 'moment'
import { vueInstance } from '@/main'

const mixin = {
    data() {
        return {
            
        }
    },
    watch: {
        
    },
    computed: {
        ...mapState(['art_class', 'art_tag'])
    },
    filters: {
        timer(value) {
            return moment(value).format('YYYY-MM-DD HH:mm:ss')
        },
        className(value) {
            return vueInstance.$store.state.art_class.filter(item => item.id == value)[0].name
        }
    }
}


export { mixin }